import request from '@/utils/request'

export function login(username, password) {
  return request({
    url: '/login/checkLogin?username=' + username + '&password=' + password,
    method: 'post',
  })
}

export function getInfo() {
  return request({
    url: '/admin/info',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/login/logout',
    method: 'post'
  })
}
